package cn.itcast.demo.locks;

/**
 * @author 虎哥
 */
public interface RedisLock {

    /**
     * 获取锁
     * @return true：获取锁成功；false：获取锁失败
     */
    boolean tryLock(long releaseTime);

    /**
     * 释放锁
     */
    void unlock();
}
